import request from '@/utils/request'

export function postTicket(data) {
  return request({
    url: `/api/ticket/operation-ticket`,
    method: 'post',
    data
  })
}

export function postTicketFind(data) {
  return request({
    url: `/api/ticket/operation-ticket/find`,
    method: 'post',
    data
  })
}

export function getTicket(ticketId) {
  return request({
    url: `/api/ticket/operation-ticket/${ticketId}?ticketId=${ticketId}`,
    method: 'get'
  })
}

export function putTicket(ticketId,data) {
  return request({
    url: `/api/ticket/operation-ticket/${ticketId}?ticketId=${ticketId}`,
    method: 'put',
    data
  })
}